<?php

//No direct access

defined('_JEXEC') or die('Restricted access');

?>

<div id="ownservices">


 <div id="mainmenuownservice"><?php echo MenuHelper::nav(); ?></div>


	<div id="mainownservice">

	<h3><?php echo JText::_('OWNSERVICE_EXCHANGERATE_DETAIL'); ?></h3>

	<hr />

	<?php $row = $this->row; ?>

	<form action="<?php echo JRoute::_('index.php?option=com_ownservice'); ?>" method="post" name="adminForm">

	<table class="admintable">

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_EXCHANGERATE_NAME'); ?></td>

			<td><?php echo $row->name; ?></td>

		</tr>

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_EXCHANGERATE_CODE'); ?></td>

			<td><?php echo $row->code; ?></td>

		</tr>

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_EXCHANGERATE_SIGN'); ?></td>

			<td><?php echo $row->sign; ?></td>

		</tr>

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_EXCHANGE_RATE'); ?></td>

			<td><?php echo $row->rate; ?></td>

		</tr>

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_THAI_RATE'); ?></td>

			<td><?php echo $row->rate_th; ?> <strong>THB</strong></td>

		</tr>

		<tr>

			<td colspan="2"><hr /></td>

		</tr>

		<tr>

			<td colspan="2" align="center">

			<input type="button" name="cancel" value="<?php echo JText::_('OWNSERVICE_BACK'); ?>" onClick="javascript:document.location.href='<?php echo JText::_('index.php?option=com_ownservice&view=exchangerates'); ?>';" />

			<?php if($this->access->canEdit || $this->access->canEditOwn):?><input type="submit" name="edit" value="<?php echo JText::_('OWNSERVICE_EDIT'); ?>" /><?php endif; ?>

			</td>

		</tr>

	</table>

	<input type="hidden" name="id" value="<?php echo $row->id; ?>" />

	<input type="hidden" name="option" value="com_ownservice" />

	<input type="hidden" name="task" value="edit" />

	<input type="hidden" name="Itemid" value="<?php echo JRequest::getVar('Itemid'); ?>" />

	<input type="hidden" name="controller" value="exchangerate" />

	<input type="hidden" name="view" value="exchangerate" />

	<?php echo JHTML::_( 'form.token' ); ?>

	</form>

	</div>

</div>